!{include file='common/iheader.htm'}
<div id="i_nav">
	<h3 class="page_title">图片分类管理</h3>
	<a class="button" href="javascript:void(0)">添加分类</a>
</div>
<ul class="list_view">
	!{foreach from=$cates item=cate}
	<li>
		<strong>!{$cate.name}</strong>
		<div class="opt_div">
			修改 删除 合并到
		</div>
	</li>
	!{foreachelse}
	<li>暂无分类</li>
	!{/foreach}
</ul>

<form method="post" class="form_box ajax_form">
	<div class="form_item">
		<strong>分类名称：</strong>
		<div><input class="text_input" maxlength="50" type="text" name="name" value=""/></div>
		<p>(分类名称长度应该在1至50之间)</p>
	</div>
	<div class="form_item">
		<strong>上级分类：</strong>
		<div>
			<select name="parent">
				<option value="0">--顶级分类--</option>
				!{html_options options=$options}
			</select>
		</div>
	</div>
	<div class="form_item form_btn_item">
		<input type="hidden" name="id" value="0"/>
		<input type="hidden" name="app" value="file"/>
		<input type="hidden" name="act" value="image_cate"/>
		<input class="button submit_btn" type="button" value="保存" />
	</div>
</form>
!{include file='common/ifooter.htm'}